/*
 * 注意：此文件已弃用
 * 项目已迁移到新的结构，使用以下命令替代：
 * 
 * npm run tmall:refunds    - 处理天猫退款订单
 * npm run douyin:refunds   - 处理抖音退款订单
 * npm run shipment:report  - 获取所有平台物流报告
 * 
 * 或者直接使用:
 * node src/cli.js tmall refunds    - 处理天猫退款订单
 * node src/cli.js douyin refunds   - 处理抖音退款订单
 * node src/cli.js shipment         - 获取所有平台物流报告
 */

import { delay, ensurePageOpen } from './src/utils.js';
import { chromium } from '@playwright/test';

import { closePopups } from './src/utils.js';

(async () => {
  const browser = await chromium.launch({ headless: false });
  const context = await browser.newContext({
    storageState: 'src/config/credentials/taobao.json'
  });
  const page = await ensurePageOpen(context, 'https://myseller.taobao.com');
  console.log('浏览器已启动');
  await closePopups(page);
  await page.pause();


})();

